From: Roan Kattouw Date: Wed, 2 Apr 2008 12:13:10 +0000 (+0000) Subject: Should've added $dbw->commit() here, hope this fixes bug 13587 X-Git-Tag: 1.31.0-rc.0~48671 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=e8515f4a0b697f561e0683c2d436f96e17c85850;p=lhc%2Fweb%2Fwiklou.git Should've added $dbw->commit() here, hope this fixes bug 13587 --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 1f961220d0..dde5a1b2ea 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -146,7 +146,9 @@ class ApiEditPage extends ApiBase { # but that breaks API mode detection through is_null($wgTitle) global $wgTitle; $wgTitle = null; + $dbw = wfGetDb(DB_MASTER); $retval = $ep->internalAttemptSave($result, $wgUser->isAllowed('bot') && $params['bot']); + $dbw->commit(); switch($retval) { case EditPage::AS_HOOK_ERROR: